﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Shop.Core.Domain.Orders;
using Shop.Core.Domain.Customers;

namespace Shop.Core.Data.Customers
{
    public interface ICustomerRepository : IRepository<Customer, int>
    {
        /// <summary>
        /// 用email查询用户
        /// </summary>
        /// <param name="email"></param>
        /// <returns></returns>
        Customer GetCustomerByEmail(string email);
        /// <summary>
        /// 用NickName查询用户
        /// </summary>
        /// <param name="nickName"></param>
        /// <returns></returns>
        Customer GetCustomerByNickName(string nickName);
    }
}
